package com.aoxon.cargo.bean;

import java.io.Serializable;
import java.util.List;

public class Supplier implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * @author hao
	 */
	private int supId; // 公司的唯一标识符id,自动添加
	private String supPhone; // 公司的电话
	private String supEmail; // 邮箱
	private String supCity; // 城市
	private String supMarket; // 市场
	private String supStall; // 公司编号
	private String storeName; // 店铺名称

	private List<Picture> supLogo; // 公司logo
	private List<Picture> supCompanyPicture; // 公司照片
	private List<Picture> certificationPicture; // 营业执照
	private String supCompanyFullName; // 公司全称
	private int cerState; // 公司是否认证，1表示认证，0表示没有认证
	private String postDate; // 发布
	private String lastModifyDate; // 上次修改时间
	private String saveTime;
	private int longitude; // 经度
	private int latitude; // 纬度
	private String supCount; // 账号
	private String supPassword; // 密码
	private String lastCheckSystemMesaageTime; // 最后一次查看系统消息时间
	private long LongLastModifyDate; // 为了插入时间数据而设，与前端无关
	private long LongLastCheckSystemMesaageTime; // 为了插入时间数据而设，与前端无关
	private int hotLevel; // 商家所有商品被收藏的次数
	private long lastPostTime; // 最后一次上传物品时间
    private int clothNum;      //拥有的商品数
    private int supState;
   // private String smallPicture;    //logo图片，list列表里显示
	public Supplier() {
		super();
	}

	
	public Supplier(String supCount, String supPassword, String supPhone,
			String supEmail, String supStoreName, String supCity,
			String supMarket, String supStall) {
		super();

		this.setSupCity(supCity);
		this.setStoreName(supStoreName);
		this.setSupEmail(supEmail);
		this.setsupMarket(supMarket);
		this.setsupStall(supStall);
		this.setSupPhone(supPhone);
		this.setSupCount(supCount);
		this.setSupPassword(supPassword);
	}
	
	public Supplier(int supId, String supPhone, String supEmail,
			String supCity, String supMarket, String supStall,
			String storeName, String licencePicture, List<Picture> supLogo,
			String supCompanyFullName, int cerState, int longitude,
			int latitude, String supCount, String supPassword) {
		super();
		this.setSupLogo(supLogo);
		this.setCerState(cerState);
		this.setSupCompanyFullName(supCompanyFullName);
		this.setSupId(supId);
		this.setSupCity(supCity);
		this.setStoreName(storeName);
		this.setSupEmail(supEmail);
		this.setsupMarket(supMarket);
		this.setsupStall(supStall);
		this.setSupPhone(supPhone);
		this.setLongitude(longitude);
		this.setLatitude(latitude);
		this.setSupCount(supCount);
		this.setSupPassword(supPassword);
	}

	public List<Picture> getSupCompanyPicture() {
		return supCompanyPicture;
	}

	public void setSupCompanyPicture(List<Picture> supCompanyPicture) {
		this.supCompanyPicture = supCompanyPicture;
	}

	public List<Picture> getCertificationPicture() {
		return certificationPicture;
	}

	public void setCertificationPicture(List<Picture> certificationPicture) {
		this.certificationPicture = certificationPicture;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getSupPhone() {
		return supPhone;
	}

	public void setSupPhone(String supPhone) {
		this.supPhone = supPhone;
	}

	public String getSupEmail() {
		return supEmail;
	}

	public void setSupEmail(String supEmail) {
		this.supEmail = supEmail;
	}

	/**
	 * @return the supMarket
	 */
	public String getsupMarket() {
		return supMarket;
	}

	/**
	 * @param supMarket
	 *            the supMarket to set
	 */
	public void setsupMarket(String supMarket) {
		this.supMarket = supMarket;
	}

	public String getSupCity() {
		return supCity;
	}

	public void setSupCity(String supCity) {
		this.supCity = supCity;
	}

	public String getsupStall() {
		return supStall;
	}

	public void setsupStall(String supStall) {
		this.supStall = supStall;
	}

	public int getSupId() {
		return supId;
	}

	public void setSupId(int supId) {
		this.supId = supId;
	}

	public String getSupCompanyFullName() {
		return supCompanyFullName;
	}

	public void setSupCompanyFullName(String supCompanyFullName) {
		this.supCompanyFullName = supCompanyFullName;
	}

	public String getLastModifyDate() {
		return lastModifyDate;
	}

	public void setLastModifyDate(String string) {
		this.lastModifyDate = string;
	}

	public String getPostDate() {
		return postDate;
	}

	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}

	// 10.21.56.89:80/cargo/register.jsp

	public int getLongitude() {
		return longitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}

	public int getLatitude() {
		return latitude;
	}

	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public int getCerState() {
		return cerState;
	}

	public void setCerState(int cerState) {
		this.cerState = cerState;
	}

	public String getLastCheckSystemMesaageTime() {
		return lastCheckSystemMesaageTime;
	}

	public void setLastCheckSystemMesaageTime(String lastCheckSystemMesaageTime) {
		this.lastCheckSystemMesaageTime = lastCheckSystemMesaageTime;
	}

	public String getSupCount() {
		return supCount;
	}

	public void setSupCount(String supCount) {
		this.supCount = supCount;
	}

	public String getSupPassword() {
		return supPassword;
	}

	public void setSupPassword(String supPassword) {
		this.supPassword = supPassword;
	}

	@Override
	public String toString() {
		return "supId:" + supId + ",supPhone:" + supPhone + ",supEmail:"
				+ supEmail + ",supCity:" + supCity + ",supMarket:" + supMarket
				+ ",supStall:" + supStall + ",storeName:" + storeName
				+ ",supCompanyPicture:" + supCompanyPicture
				+ ",supCompanyFullName:" + supCompanyFullName + ",cerState:"
				+ cerState + ",postDate:" + postDate + ",lastModifyDate:"
				+ lastModifyDate + ",longitude:" + longitude + ",latitude:"
				+ latitude + ",certificationPicture:" + certificationPicture
				+ ",supCount:" + supCount + ",supPassword:" + supPassword + "";

	}

	public long getLongLastModifyDate() {
		return LongLastModifyDate;
	}

	public void setLongLastModifyDate(long longLastModifyDate) {
		LongLastModifyDate = longLastModifyDate;
	}

	public long getLongLastCheckSystemMesaageTime() {
		return LongLastCheckSystemMesaageTime;
	}

	public void setLongLastCheckSystemMesaageTime(
			long longLastCheckSystemMesaageTime) {
		LongLastCheckSystemMesaageTime = longLastCheckSystemMesaageTime;
	}

	public List<Picture> getSupLogo() {
		return supLogo;
	}

	public void setSupLogo(List<Picture> supLogo) {
		this.supLogo = supLogo;
	}

	public int getHotLevel() {
		return hotLevel;
	}

	public void setHotLevel(int hotLevel) {
		this.hotLevel = hotLevel;
	}

	public long getLastPostTime() {
		return lastPostTime;
	}

	public void setLastPostTime(long lastPostTime) {
		this.lastPostTime = lastPostTime;
	}

	public int getClothNum() {
		return clothNum;
	}

	public void setClothNum(int clothNum) {
		this.clothNum = clothNum;
	}

	public int getSupState() {
		return supState;
	}

	public void setSupState(int supState) {
		this.supState = supState;
	}

	public String getSaveTime() {
		return saveTime;
	}

	public void setSaveTime(String saveTime) {
		this.saveTime = saveTime;
	}



}